-- ----------------------------------------------------------
--
-- Author: czf
-- date: 2018-12-10
-- description: 桥接-抽象化(类)-圆形
--
-- ----------------------------------------------------------

Circle = Circle or BaseClass(Shape)


function Circle:__init(x, y, radius, drawAPI)
	self.drawAPI  = drawAPI -- 其实这里是用父类来记录，现在自己记录就行了
	self.x = x
	self.y = y
	self.radius = radius
end

function Circle:Draw()
	self.drawAPI:DrawCircle(self.radius, self.x, self.y)
end